package avicit.bdp.dds.dao.entity;


import avicit.bdp.dds.dispatch.enums.CycleEnum;

import java.util.Date;

/**
 * cycle dependency
 */
public class CycleDependency {
    /**
     * process define id
     */
    private String processDefineId;
    /**
     * last schedule time
     */
    private Date lastScheduleTime;
    /**
     * expiration time
     */
    private Date expirationTime;
    /**
     * cycle enums
     */
    private CycleEnum cycleEnum;


    public CycleDependency(String processDefineId, Date lastScheduleTime, Date expirationTime, CycleEnum cycleEnum) {
        this.processDefineId = processDefineId;
        this.lastScheduleTime = lastScheduleTime;
        this.expirationTime = expirationTime;
        this.cycleEnum = cycleEnum;
    }

    public String getProcessDefineId() {
        return processDefineId;
    }

    public void setProcessDefineId(String processDefineId) {
        this.processDefineId = processDefineId;
    }

    public Date getLastScheduleTime() {
        return lastScheduleTime;
    }

    public void setLastScheduleTime(Date lastScheduleTime) {
        this.lastScheduleTime = lastScheduleTime;
    }

    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }

    public CycleEnum getCycleEnum() {
        return cycleEnum;
    }

    public void setCycleEnum(CycleEnum cycleEnum) {
        this.cycleEnum = cycleEnum;
    }

    @Override
    public String toString() {
        return "CycleDependency{" +
                "processDefineId=" + processDefineId +
                ", lastScheduleTime=" + lastScheduleTime +
                ", expirationTime=" + expirationTime +
                ", cycleEnum=" + cycleEnum +
                '}';
    }
}
